package com.auxgroup.hr.front.service.process.impl;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.stereotype.Service;

import com.auxgroup.hr.front.dao.domain.PsCAppStepPmi;
import com.auxgroup.hr.front.dao.repository.PsCAppStepPmiRepository;
import com.auxgroup.hr.front.dozer.IObjectMapper;
import com.auxgroup.hr.front.service.process.PsCAppStepPmiService;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年5月29日 下午5:00:18 
 * 类说明 
 */
@Service("psCAppStepPmiService")
public class PsCAppStepPmiServiceImpl implements PsCAppStepPmiService {
	
	private static final Logger logger = LoggerFactory.getLogger(PsCAppStepPmiServiceImpl.class);
	
	@Autowired
	private PsCAppStepPmiRepository psCAppStepPmiRepository;
	
	@Resource(name = "dozerMapper")
	protected IObjectMapper objectMapper;

	/* (non-Javadoc)
	 * @see PsCAppStepPmiService#getAppStepPmi(PsCAppStepPmiPrimary)
	 */
	@Override
	public List<PsCAppStepPmi> getAppStepPmi(PsCAppStepPmi pmi) {
		logger.info("getAppStepPmi start param={}",pmi);
		return psCAppStepPmiRepository.findAll(Example.of(pmi));
	}

}
 